﻿ IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'RegistroOTGastoSave')
	BEGIN
		DROP  Procedure  RegistroOTGastoSave
	END
GO


CREATE PROCEDURE RegistroOTGastoSave 	
	(	
		@OTId AS INT,
		@gastoId AS INT  = NULL,
		@monto AS DECIMAL(10,2) = NULL
	)	
AS
BEGIN	
	SET NOCOUNT ON	
		
	INSERT INTO Lit_OTGasto
		(OTId, GastoId, Monto)
	VALUES 
		(@OTId, @gastoId, @monto)
	
	SET NOCOUNT OFF
END
GO  